import { useContext, createContext } from "react"

export interface GlobalContextType {
    language: string;
}

const GlobalModel = createContext<GlobalContextType>({
    language: 'zh-CN',
})
const GlobalProvider = GlobalModel.Provider
function useGlobal() {
    return useContext(GlobalModel);
}
export {
    GlobalModel,
    GlobalProvider,
    useGlobal
}
export default GlobalModel


